<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:s="http://jboss.com/products/seam/taglib"
	template="/WEB-INF/esquema/plantillasimple.xhtml">

	<ui:define name="body">
		<h:panelGroup rendered="#{operationPermitHelper.buildingLayers.size() gt 0}">
			<a4j:include viewId="/permits/operation/step1DataIntro.xhtml"/>

			<ui:include src="/WEB-INF/includes/selectLandUse.xhtml" />
			<ui:include src="/WEB-INF/includes/selectBusinessType.xhtml" />
			<f:subview id="sp">
				<ui:include src="/WEB-INF/includes/selectParty.xhtml" />
			</f:subview>

			<ui:include src="/zoneselector/selectZonePanel.xhtml">
				<ui:param name="width" value="830" />
				<ui:param name="height" value="630" />
				<ui:param name="layerTypes" value="PARCEL, BUILDING" />
				<ui:param name="selectAction" value="operationPermitHelper.selectParcelOrBuildingFromMap" />
				<ui:param name="render" value="selectedParcelGrp" />
			</ui:include>
		</h:panelGroup>
		
		<h:panelGroup rendered="#{operationPermitHelper.buildingLayers.size() eq 0}">
			<div align="center">
				<br/>
				<strong>#{messages['operation_permit.start_header']}</strong>
				<rich:separator lineType="solid"/>
				<br/>
			</div>
			
			<div align="center">
				<h:outputText value="#{messages['txt.no_building_layers_available']}" />
				<br />
				<br />
			</div>
		</h:panelGroup>
	</ui:define>
	
</ui:composition>
